package myenum;

public enum SeasonEnum {
    SPRING,SUMMER,FALL,WINTER;

}
class test1{
    public static void main(String[] args) {
        System.out.println(SeasonEnum.SPRING);
        System.out.println(SeasonEnum.values());
        System.out.println(SeasonEnum.SPRING.name());
        System.out.println(SeasonEnum.SPRING.toString());
        System.out.println(SeasonEnum.SPRING.ordinal());
        System.out.println(SeasonEnum.SPRING.compareTo(SeasonEnum.SUMMER));
    }
}